{include file="header.html"}
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<style type="text/css">
${
    demo.css
}
 </style>
<script type="text/javascript">
$(function(){
    $('#dtyear').datepicker({
        just:'year',format:'yyyy'
    });
    $('#dtmonth').datepicker({
        just:'month',format:'mm'
    });
})
 </script>
<div class="page-header">
	<h6>
		统计报表
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			报表
		</small>

	</h6>
    <form class="form-inline" action="?app=statistics&act=sales" method="get" style="padding-bottom:5px;">
        <input type="hidden" name="app" id="app" value="statistics" />
        <input type="hidden" name="act" id="act" value="sales" />
        <span>选择年份：<input type="text" name="year" id="dtyear" value="{$year}" /></span>
        <span>选择月份：<input type="text" name="month" id="dtmonth" value="{$month}" /></span>
        <span>排序:
                <select name="sort">
                    <option value="1">销售额</option>
                    <option value="2">销量</option>
                </select>
        </span>
        <button type="submit" class="btn btn-info btn-sm">
         <i class="ace-icon fa fa-search bigger-110"></i>搜索
        </button>
</form>

<table id="simple-table" class="table table-striped table-bordered table-hover">
    <thead>
        <tr>
            <th>排名</th>
            <th>商品名称</th>
            <th>销量</th>
            <th>销售额</th>
        </tr>
    </thead>

    <tbody>
        {foreach from=$row key=k item=rs}
        <tr>
            <td>{$k +1}</td>
            <td>{$rs.goods_name}</td>
            <td>{$rs.quantity}</td>
            <td>{$rs.price}</td>
        </tr>
        {foreachelse}
        <tr bgcolor="white"><td colspan="13" height="50">暂无记录</td></tr>
        {/foreach}  
        
    </tbody>
</table>
<div class="mypage" style="text-align:right">
            共 {$page.num_records} 个记录  {$page.current_page} / {$page.num_pages} 页  {$page.first_page} {$page.prev} {$page.nav} {$page.next} {$page.last_page}
</div>
{include file="footer.html"}


